package com.zzp.zjs_bos.dao.base;

import java.io.Serializable;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

public interface IBaseDao<T> {
	
	public void save(T t);
	
	public void delete(T t);
	
	public void update(T t);
	
	public List<T> findAll();
	
	public T findById(Serializable id);
	
	public List<T> findByCriteria(DetachedCriteria criteria);
	
	public List<T> findByNameQuery(String queryName,Object...arg);
		
	public void executeNamedQuery(String queryName,Object...args);
}
